package cn.ickck.law_paper_final.service.Impl;

import cn.ickck.law_paper_final.mapper.UserMapper;
import cn.ickck.law_paper_final.model.entity.User;
import cn.ickck.law_paper_final.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: ck
 * @Description:
 * @Date: Create in 15:03 2020/10/17
 */
@Service
public class UserServiceImpl  implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findByName(String username, String password) {
        return userMapper.findByNameAndPwd(username,password);
    }

    @Override
    public Integer insert(User user) {
       return   userMapper.insert(user);
    }
}
